<%@page import="cn.edu.pku.wxlib.user.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title>User信息</title>
</rapid:override>

<rapid:override name="content">
	<form:form modelAttribute="user"  >
		<%-- <input type="button" value="返回列表" onclick="window.location='${ctx}/user'"/>
		<input type="button" value="后退" onclick="history.back();"/> --%>
		<br>
		<div class="handleControl">
			<div class="form-group inline">
				<button type="button" class="btn btn-primary" onclick="window.location = '${ctx}/user'">&nbsp;&nbsp;&nbsp;返回列表&nbsp;&nbsp;&nbsp;</button>
				<button type="button" class="btn btn-default" onclick="history.back();">&nbsp;&nbsp;&nbsp;后退&nbsp;&nbsp;&nbsp;</button>
			</div>
		</div>
		
		<input type="hidden" id="userId" name="userId" value="${user.userId}"/>
	
		<table class="formTable">
			<tr>	
				<td class="tdLabel">关联的老师表或学生表主键</td>	
				<td><c:out value='${user.relatedId}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">userName</td>	
				<td><c:out value='${user.userName}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">name</td>	
				<td><c:out value='${user.name}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">password</td>	
				<td><c:out value='${user.password}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">出生年与日</td>	
				<td><c:out value='${user.birthString}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">gender</td>	
				<td><c:out value='${user.gender}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">座机</td>	
				<td><c:out value='${user.tel}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">手机</td>	
				<td><c:out value='${user.phone}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">email</td>	
				<td><c:out value='${user.email}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">1老师，2学生</td>	
				<td><c:out value='${user.type}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">借阅类型Id</td>	
				<td><c:out value='${user.borrowTypeId}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">createTime</td>	
				<td><c:out value='${user.createTimeString}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">1启用，0禁用</td>	
				<td><c:out value='${user.state}'/></td>
			</tr>
		</table>
	</form:form>
</rapid:override>

<%@ include file="base.jsp" %>